﻿using System;
using System.Collections.Generic;
using System.Text;
using Xms.Core.Context;
using Xms.CRM.Domain;

namespace Xms.CRM
{
    public interface IStudentService
    {
        Guid Create(Student entity);

        bool CreateMany(List<Student> entitys);

        bool DeleteById(Guid id);

        bool DeleteById(List<Guid> ids);

        Student FindById(Guid id);

        List<Student> Query(Func<QueryDescriptor<Student>, QueryDescriptor<Student>> container);

        PagedList<Student> QueryPaged(Func<QueryDescriptor<Student>, QueryDescriptor<Student>> container);

        bool Update(Student entity);

        bool Update(Func<UpdateContext<Student>, UpdateContext<Student>> context);
    }
}
